﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KZ400B.Data
{
    public class AxleStateBarMsg : PropertyChangedBase
    {
        private AxleStateBarMsg()
        {
            m_axleState = string.Empty;
        }
        
        static AxleStateBarMsg m_sObj;
        static object m_oLk = new object();
        public static AxleStateBarMsg Instance
        {
            get {
                lock (m_oLk)
                {
                    if (m_sObj == null)
                    { m_sObj = new AxleStateBarMsg(); }
                } 
                return m_sObj;
            }
        } 


        string m_axleState;

        public string AxleState
        {
            get { if (string.IsNullOrEmpty(m_axleState)) { m_axleState = ""; } return m_axleState; }
            set
            {
                if (m_axleState != value)
                {
                    m_axleState = value;
                    this.NotifyPropertyChanged(n => n.AxleState);
                }
            }
        }
    }
}
